package base.adpter.Perproties;

import java.io.IOException;

/**
 * @program: DesignPatterns
 * @description: 测试
 * @author: Mr.Dai
 * @create: 2018-04-10 18:50
 **/
public class MainT {
        public static void main(String[] args) {
            FileIO f = new FileProperties();
            try {
                f.readFromFile("file.txt");
                f.setValue("year", "2004");
                f.setValue("month", "4");
                f.setValue("day", "21");
                f.writeToFile("newfile.txt");
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
}
